const { Document } = require('camo')
const Character = require('./character')

// Just an organised party (read: team, group) of Characters.
class Party extends Document {
  constructor() {
    super()

    this.schema({
      members: [Character],
    })
  }

  static of(characters) {
    return this.create({members: characters})
  }
}

module.exports = Party
